package com.demo.gateway.exception;

/**
 * @author: demo
 * @date: 2020年6月18日
 * @Document : 路由异常类
 */
public class RouteException extends Exception {
	/**
	 * 序列化id
	 */
	private static final long serialVersionUID = 1L;
    private int  errorCode;
     
	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public RouteException(String msg, Throwable error,int code) {
		super(msg, error);
		this.errorCode=code;
	}

	public RouteException(String msg,int code) {
		super(msg);
		this.errorCode=code;
	}

	public RouteException(Throwable error) {
		super(error);
	}
}
